package com.atguigu.snake;
import javax.swing.*;
import java.net.URL;
public class Data {
    //贪吃蛇头部
    //贪食蛇身体
    public static URL bodyUrl = Data.class.getResource("body.png");
    public static ImageIcon body = new ImageIcon(bodyUrl);
    public static ImageIcon head = new ImageIcon(bodyUrl);
    public static URL bodyUrl1 = Data.class.getResource("body1.png");
    public static ImageIcon body1 = new ImageIcon(bodyUrl1);
    public static ImageIcon head1 = new ImageIcon(bodyUrl1);
    public static URL bodyUrl2 = Data.class.getResource("body2.png");
    public static ImageIcon body2 = new ImageIcon(bodyUrl2);
    public static ImageIcon head2 = new ImageIcon(bodyUrl2);
    
    //食物
    public static URL foodUrl = Data.class.getResource("food.png");
    public static ImageIcon food = new ImageIcon(foodUrl);
    public static URL foodUrl1 = Data.class.getResource("food1.png");
    public static ImageIcon food1 = new ImageIcon(foodUrl1);
    public static URL foodUrl2 = Data.class.getResource("food2.png");
    public static ImageIcon food2 = new ImageIcon(foodUrl2);
    public static URL bgUrl = Data.class.getResource("bg.png");
    public static ImageIcon background = new ImageIcon(bgUrl);
    public static URL bgUrl1 = Data.class.getResource("bg1.png");
    public static ImageIcon background1 = new ImageIcon(bgUrl1);
    public static URL bgUrl2 = Data.class.getResource("bg2.png");
    public static ImageIcon background2 = new ImageIcon(bgUrl2);
}